//
//  UIButton+JPF.h
//  JPFCore
//
//  Created by JPFei on 2019/3/26.
//  Copyright © 2019 JPF All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIButton (JPF)

- (void)setTitle:(NSString *)title
      titleColor:(UIColor*)titleColor
        forState:(UIControlState)state;

- (void)enabledDelay:(NSTimeInterval)afterDelay;

@end

typedef enum : NSUInteger {
    UIButtonStyle_Default = 0,
    UIButtonStyle_ImageUp,
    UIButtonStyle_ImageLeft,
    UIButtonStyle_ImageDown,
    UIButtonStyle_ImageRight,
} UIButtonStyle;

@interface UIButton (JPFInspectable)

@property (nonatomic) IBInspectable NSInteger styleTypeFlag;

- (void)configWithType:(UIButtonStyle)type;

@end

NS_ASSUME_NONNULL_END
